<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"/>
		<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div class="container" style="width: 400px; margin-top: 50px;">
			<fieldset>
				<legend>登录</legend>
				<div class="form-group">
					<label for="username">用户名:</label>
					<input class="form-control" autocomplete="off" type="text" name="username" id="username" value="" />
				</div>
				<div class="form-group">
					<label for="password">密码:</label>
					<input class="form-control" type="password" name="password" id="password" value="" />
				</div>
				<div>
					<button id="btnSave" class="btn btn-primary"  type="button">保存</button>
					<button id="btnClear" class="btn btn-danger"  type="button">取消</button>
				</div>
			</fieldset>
		</div>
	</body>
	<script type="text/javascript">
		// function save(){
		// 	// let username = document.getElementById("username")
		// 	// let Password = document.getElementById("password")
			
		// 	console.log($("#username").val())
		// 	console.log($("#password").val())
		// }
		// function clearr(){
		// 	$("#username").val("")
		// 	$("#password").val("")
		// }
		$("#btnSave").click(function(){
			var username=$("#username").val()
			var password=$("#password").val()
			console.log(username+":"+password)
		})
		$("#btnClear").click(function(){
			$("#username").val("")
			$("#password").val("")
		})
	</script>
</html>
